#include<unistd.h>
#include<thread>
#include<iostream>
using namespace std;
void myrun()
{
	while(true)
	{
		cout << "i am thread" << endl;
		sleep(1);
	}
}

int main()
{
	thread t(myrun);
	t.join();
	
	return 0;
}